package com.mgy.db.sharding.aop;

import com.mgy.db.TableRouter;
import com.mgy.db.sharding.annotation.MybatisMapper;

import java.lang.reflect.Method;
import java.util.Set;

/**
 * xxx
 *
 * @author maguoyong
 * @date 2019/12/4
 */
public interface IShardingCallback {

    /**
     * 自己实现分库分表逻辑
     */
    Set<TableRouter> getTableRouters(Method method, String[] parameterNames, Class[] parameterTypes, Object[] parameterValues, MybatisMapper mybatisMapper);
}
